package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.SelectVo;
import com.zb.entity.ZjFactoryEmp;
import com.zb.extend.FactoryEmpExtend;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 厂商人员表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2024-02-27
 */
@Repository
public interface ZjFactoryEmpMapper extends BaseMapper<ZjFactoryEmp> {

    /**
     * 获取商家详情之账号管理
     * @param factoryId 品牌商家ID
     * @param selectVo 搜索对象
     * @return
     */
    List<FactoryEmpExtend> getFactoryEmpAccountList(@Param("factoryId") Long factoryId, @Param("selectVo") SelectVo selectVo);

    /**
     * 获取商家详情之账号管理总记录数
     * @param factoryId 品牌商家ID
     * @param selectVo 搜索对象
     * @return
     */
    long getFactoryEmpAccountListCount(@Param("factoryId") Long factoryId, @Param("selectVo") SelectVo selectVo);
}
